package com.fang.gulimall.admin.domain.system.config.db;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fang.gulimall.admin.common.core.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * @ClassName SysConfigEntity
 * @Description TODO
 * @Author fangge
 * @Date 2024/6/13 6:21
 */
@Getter
@Setter
@TableName("sys_config")
@Schema(name = "SysConfigEntity对象", description = "参数配置表")
public class SysConfigEntity extends BaseEntity<SysConfigEntity> {

    private static final long serialVersionUID = 1L;

    @Schema(description = "参数主键")
    @TableId(value = "config_id", type = IdType.AUTO)
    private Integer configId;

    @Schema(description = "配置名称")
    @TableField("config_name")
    private String configName;

    @Schema(description = "配置键名")
    @TableField("config_key")
    private String configKey;

    @Schema(description = "可选的选项")
    @TableField("config_options")
    private String configOptions;

    @Schema(description = "配置值")
    @TableField("config_value")
    private String configValue;

    @Schema(description = "是否允许修改")
    @TableField("is_allow_change")
    private Boolean isAllowChange;

    @Schema(description = "备注")
    @TableField("remark")
    private String remark;


    @Override
    public Serializable pkVal() {
        return this.configId;
    }

}
